package com.back.end.utils;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class ListToUnique<T> {
    public List<T> toUnique(List<T> list) {
        Set<T> uniqueSet = new HashSet<T>(list);
        List<T> result = new ArrayList<T>(uniqueSet);
        return result;
    }
}
